package Class.PredefinedClass;

import java.time.LocalDate;

/**
 * Enjoy programming!!!
 * Time: 2021/10/28 -  21:10
 */
public class PredefinedClass00 {
    public static void main(String[] args){
        LocalDate.of(1999,12,31);
        LocalDate newYearsEve = LocalDate.of(1999, 12, 31);

        int year = newYearsEve.getYear();
        int month = newYearsEve.getMonthValue();
        int day = newYearsEve.getDayOfMonth();

        LocalDate aThousandDaysLater = newYearsEve.plusDays(1000);
        year = aThousandDaysLater.getYear();
        month = aThousandDaysLater.getMonthValue();
        day = aThousandDaysLater.getDayOfMonth();

        System.out.println(year + " " + month + " " + day);
    }

}
